<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="menu.jsp" %>

    <a href="${pageContext.request.contextPath}/insertExampaper.jsp">添加</a><br>
    <table border="1">
        <thead>
            <td>主键</td>
            <td>试卷名</td>
            <td>试卷创建时间</td>
            <td>考试时间</td>
            <td>试卷有效期</td>
            <td>试卷分数</td>
            <td>试卷课程名</td>
            <td>操作步骤</td>
        </thead>
        <tbody>
        <c:forEach items="${exampapers}" var="one">
            <tr>
                <td>${one.eId}</td>
                <td>${one.eTitle}</td>
                <td><fmt:formatDate value="${one.creatTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                <td>${one.validateTime}</td>
                <td><fmt:formatDate value="${one.validity}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                <td>${one.fulscore}</td>
                <td>${one.courseName}</td>
                <td>
                    <a href="deleteExampaper?eId=${one.eId}">删除</a>
                    <a href="exampaperQueryById?eId=${one.eId}">修改</a>
                    <a href="questionQueryByCourseName?courseName=${one.courseName}">查看试题</a>
                    <a href="questionQueryTest?courseName=${one.courseName}&eId=${one.eId}">测试试题</a>
                </td>

            </tr>
        </c:forEach>
        </tbody>

</table>
</div>
</body>
</html>